package de.haw.HES.base;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import de.haw.HES.Disposition.pub.DispositionAdapterService;

public class Client {
	
	public static void main(String[] args) {
		System.setSecurityManager(new SecurityManager());
		try {
			DispositionAdapterService disp = (DispositionAdapterService) Naming.lookup("rmi://localhost/blubdererste");
			System.out.println(disp.hasBeenDelivered(1));
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NotBoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
